package com.yao.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orderpay")
@ApiModel(value="Orderpay对象", description="")
public class Orderpay implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识")
    private Integer id;

    @ApiModelProperty(value = "用户唯一标识")
    @TableId(value = "openId", type = IdType.AUTO)
    private String openId;

    @ApiModelProperty(value = "商品id")
    @TableField("goodsId")
    private Integer goodsId;

    @ApiModelProperty(value = "商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "商品图片")
    @TableField("imageUrl")
    private String imageUrl;

    @ApiModelProperty(value = "商品价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "购买商品数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "祝福语")
    @TableField("blessing")
    private String blessing;

    @ApiModelProperty(value = "是否选中")
    @TableField("isChecked")
    private Integer isChecked;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "订单号")
    @TableField("orderNo")
    private String orderNo;

    @ApiModelProperty(value = "订单状态")
    @TableField("orderStatus")
    private int orderStatus;


    public Orderpay() {
    }

    public Orderpay( Integer id, String openId,
                     Integer goodsId, String name,
                     String imageUrl, BigDecimal price,
                     Integer count, String blessing,
                     Integer isChecked,
                     LocalDateTime createTime,
                     LocalDateTime updateTime,
                     String orderNo,
                     int orderStatus) {
        this.id = id;
        this.openId = openId;
        this.goodsId = goodsId;
        this.name = name;
        this.imageUrl = imageUrl;
        this.price = price;
        this.count = count;
        this.blessing = blessing;
        this.isChecked = isChecked;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.orderNo = orderNo;
        this.orderStatus = orderStatus;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return openId
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 设置
     * @param openId
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 获取
     * @return goodsId
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * 设置
     * @param goodsId
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return imageUrl
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 设置
     * @param imageUrl
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 获取
     * @return price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取
     * @return count
     */
    public Integer getCount() {
        return count;
    }

    /**
     * 设置
     * @param count
     */
    public void setCount(Integer count) {
        this.count = count;
    }

    /**
     * 获取
     * @return blessing
     */
    public String getBlessing() {
        return blessing;
    }

    /**
     * 设置
     * @param blessing
     */
    public void setBlessing(String blessing) {
        this.blessing = blessing;
    }

    /**
     * 获取
     * @return isChecked
     */
    public Integer getIsChecked() {
        return isChecked;
    }

    /**
     * 设置
     * @param isChecked
     */
    public void setIsChecked(Integer isChecked) {
        this.isChecked = isChecked;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return orderNo
     */
    public String getOrderNo() {
        return orderNo;
    }

    /**
     * 设置
     * @param orderNo
     */
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    /**
     * 获取
     * @return orderStatus
     */
    public int getOrderStatus() {
        return orderStatus;
    }

    /**
     * 设置
     * @param orderStatus
     */
    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String toString() {
        return "Orderpay{serialVersionUID = " + serialVersionUID + ", id = " + id + ", openId = " + openId + ", goodsId = " + goodsId + ", name = " + name + ", imageUrl = " + imageUrl + ", price = " + price + ", count = " + count + ", blessing = " + blessing + ", isChecked = " + isChecked + ", createTime = " + createTime + ", updateTime = " + updateTime + ", orderNo = " + orderNo + ", orderStatus = " + orderStatus + "}";
    }
}
